package com.cskaoyan.wx.controller;

import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.wx.bean.vo.index.WxIndexVo;
import com.cskaoyan.wx.service.WxIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WxHomeController {

    @Autowired
    WxIndexService wxIndexService;

    @RequestMapping("wx/home/index")
    public BaseRespVo index() {

        WxIndexVo wxIndexVo = wxIndexService.index();

        return BaseRespVo.ok(wxIndexVo);

    }


}
